-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put events-router #69
Conversation
… into dev/riyap/events
src/services/events/events-router.ts
Outdated
eventsRouter.post("/check-in", async (req, res, next) => { | ||
try { | ||
const { eventId, userId } = req.body; | ||
const result = await checkInUser(eventId, userId); | ||
if (result.success) { | ||
return res | ||
.status(StatusCodes.OK) | ||
.json({ message: "Check-in successful" }); | ||
} else { | ||
return res | ||
.status(StatusCodes.NOT_FOUND) | ||
.json({ error: result.message }); | ||
} | ||
} catch (error) { | ||
next(error); | ||
} | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay i left this for testing, like the qr function; can get rid of later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few last comments, then good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm :))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a fewwww more changes
No description provided.